<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                template="./../template/WorkspaceTemplate.xhtml">

    <ui:define name="top">

    </ui:define>

    <ui:define name="left">
    </ui:define>

    <ui:define name="right">

    </ui:define>

    <ui:define name="content">
        <style>
            .ui-state-highlight.ui-selected {
                color: blueviolet;
            }
        </style>
        <h2>View Credit Group</h2>

        <h:form id="creditGroup" style="font-size: 85%">
            <p:panel id="panel1">
                <p:messages  />

                <br/>
                <h:outputText value="Direct Sales Credit Policy" style="font-weight: bold; font-size: 110%"/>
                <p:separator/> 
                <br/>
                <p:dataTable var="list" value="#{cgManagerBean.allCreditGroup}">
                    <p:column headerText="Credit Group Title">    
                        <h:outputText value="#{list.creditGroupTitle}" />  
                    </p:column>
                    <p:column headerText="Extension Day">    
                        <h:outputText value="#{list.extensionDays}" />  
                    </p:column>
                    <p:column headerText="Credit Limit">    
                        <h:outputText value="#{list.creditLimitForDs}" />  
                    </p:column>
                    <p:column headerText="Upgrade Limit">    
                        <h:outputText value="#{list.upgradeLimitForDs}" />  
                    </p:column>
                </p:dataTable>
                

                <br/>
                <br/>
                <br/>
                
                <h:outputText value="Wholesales Credit Policy" style="font-weight: bold; font-size: 110%"/>
                <p:separator/> 
                <br/>
                <p:dataTable var="list" value="#{cgManagerBean.allCreditGroup}">
                    <p:column headerText="Credit Group Title">    
                        <h:outputText value="#{list.creditGroupTitle}" />  
                    </p:column>
                    <p:column headerText="Extension Day">    
                        <h:outputText value="#{list.extensionDays}" />  
                    </p:column>
                    <p:column headerText="Credit Limit">    
                        <h:outputText value="#{list.creditLimitForWs}" />  
                    </p:column>
                    <p:column headerText="Upgrade Limit">    
                        <h:outputText value="#{list.upgradeLimitForWs}" />  
                    </p:column>
                </p:dataTable>
                <br/>
                <br/>
                <br/>
            </p:panel>

            <br/>
            <br/>
            <br/>

        </h:form>

    </ui:define>

    <ui:define name="bottom">

    </ui:define>

</ui:composition>
